<template>
	<view class="wrap-close" @click="onClose">
		<image v-if="type == '1'" src="@/static/live/close.png" class="close-img"></image>
		<image v-else src="@/static/close.png" class="close-img"></image>
	</view>
</template>

<script>
	export default {
		props: {
			type: { //0-白色 1-黑色
				type: String,
				default: "0",
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			onClose() {
				this.$emit("onClose")
			},
		},
	}
</script>

<style scoped>
	.wrap-close {
		position: absolute;
		right: 17rpx;
		top: 27rpx;
		width: 60rpx;
		height: 60rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}
	.close-img {
		width: 30rpx;
		height: 30rpx;
	}
</style>